﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Works
{
    public partial class FormLogin : Form
    {

       
        public FormLogin()
        {
            InitializeComponent();
        }
       
        public void btnOk_Click(object sender, EventArgs e)
        {

            if (this.txtUid.Text == "1" && this.txtPwd.Text == "1")
            {
                this.DialogResult = DialogResult.OK;
                this.Close();
            }
            else
            {
                MessageBox.Show("错误的用户名或密码");
            }
        }
        
        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            this.Close();
        }

        public void txtUid_TextChanged(object sender, EventArgs e)
        {

        }

        public void txtPwd_TextChanged(object sender, EventArgs e)
        {

        }

        private void FormLogin_Load(object sender, EventArgs e)
        {

        }

        private void button1_MouseEnter(object sender, EventArgs e)
        {
           
            
        }

        private void button1_MouseLeave(object sender, EventArgs e)
        {
          
        }

        private void button1_MouseLeave_1(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            FormAbout formAbout = new FormAbout();
            formAbout.ShowDialog();
        }
    }
}
